$(function () {


    $('#login_submit').click(function () {
        $(this).parent().submit();



    });

    if ($('#msg').val()!=''){
        showInfo($('#msg').val());
    }

    var alert = $('.alert');
    var formWidth = $('.bootstrap-admin-login-form').innerWidth();
    var alertPadding = parseInt($('.alert').css('padding'));
    if (isNaN(alertPadding)) {
        alertPadding = parseInt($(alert).css('padding-left'));
    }
    $('.alert').width(formWidth - 2 * alertPadding);

});



function showInfo(msg) {
    $("#div_info").text(msg);
    $("#modal_info").modal('show');
}